//接口

export {};

// 接口类型约束的 ,规范

interface Post {
  name: string;
  age: number;
}

function fn(post: Post) {
  return `${post.name} is ${post.age}`;
}

fn({
  name: "zhangsan",
  age: 18,
});
